﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Web.UI.WebControls;
using System.Data;
using DreamBuilder.Common;
using DreamBuilder.Core.AOP.Attribute;
using DreamBuilder.Core.Message;

namespace Web.SystemConfig.Services
{
    public interface IAuth_Org:IBusiness
    {
        string CheckDeptParentId(string parentId);
        void CreateTree(TreeView tree);
        int IsParentID();
        void LoadCheckBoxList(System.Web.UI.WebControls.CheckBoxList cbkRole);
        void SetCheckBoxList(System.Web.UI.WebControls.CheckBoxList cbkRole, string OrgID);
        [Transaction]
        ResultInfo SaveEditDataAndCblData(System.Data.DataSet dsInfo, System.Web.UI.WebControls.CheckBoxList cblRole);
        DataTable GetORGInfo(string ORG_ID);
        string GetOrgNameByOrgID(string Org_ID);
        DataTable GetAllOrgData();
        bool CheckORG_Code(string checkOrgCode);
        bool checkHistoryORG(string ORG_ID);
        /// <summary>
        /// 删除组织机构（将机构状态设置为历史状态）
        /// </summary>
        /// <param name="org_ID"></param>
        void UpdateOrgToHistory(string org_ID);

        /// <summary>
        /// 获取最大的编号
        /// </summary>
        /// <returns></returns>
        int GetMaxOrgCode();
    }
}
